// 进入主页面的route
let indexAdminRouteMobile = {
  path: "index",
  name: "adminIndex",
  redirect: "/home",
  component: () => import("@/views/index/index.vue"),
  meta: { name: "菜单", showMenu: true },
  children: [
    {
      path: "/home",
      name: "home",
      component: () => import("@/views/home/index.vue"),
      meta: { name: "首页", icon: "home", showMenu: true }
    },
    {
      path: "/association",
      name: "association",
      component: () => import("@/views/commonIndex/index.vue"),
      meta: { name: "社群管理", icon: "contacts", showMenu: true },
      children: [
        {
          path: "posted",
          name: "associationPosted",
          component: () => import("@/views/association/posted/index.vue"),
          meta: { name: "发帖列表", showMenu: true },
          children: [
            {
              path: "add",
              name: "addPosted",
              component: () => import("@/views/association/posted/add.vue"),
              meta: { name: "新增发帖" }
            },
            {
              path: "detail/:id",
              name: "detailPosted",
              component: () => import("@/views/association/posted/detail.vue"),
              meta: { name: "发帖详情" }
            },
            {
              path: "check/:id",
              name: "checkPosted",
              component: () => import("@/views/association/posted/check.vue"),
              meta: { name: "发帖审核" }
            }
          ]
        },
        {
          path: "comment",
          name: "associationComment",
          component: () => import("@/views/association/comment/index.vue"),
          meta: { name: "评论列表", showMenu: true },
          children: [
            {
              path: "add",
              name: "addComment",
              component: () => import("@/views/association/comment/add.vue"),
              meta: { name: "新增评论" }
            }
          ]
        }
      ]
    }
  ]
};
export default indexAdminRouteMobile;
